import java.util.Random;

public class Demo01 {

	public static void main(String[] args) {
		Random abc = new Random();
		int arr[] = new int [10];
		for (int i = 0; i < arr.length; i++) {
			arr[i] = abc.nextInt(100);
		}
		
		maxindex(arr);
		System.out.println(maxindex(arr));
		
	}
	public static int maxindex (int arr[]) {
		int max = arr[0];
		for (int i = 0; i < arr.length; i++) {
			if(arr[i] > max) {
				max = arr[i];
			}
		}
		return max;
	}
}
